<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">


<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
	xmlns:h="http://xmlns.jcp.org/jsf/html"
	xmlns:f="http://xmlns.jcp.org/jsf/core"
	xmlns:p="http://primefaces.org/ui">

<ui:composition template="/WEB-INF/templates/defaultLayout.xhtml">

	<f:metadata>
		<f:viewParam name="module" value="#{menuMB.modulo.idmodulo}" />
		<f:event type="preRenderView" listener="#{menuMB.updateMenu()}" />
	</f:metadata>

	<!-- Definiendo la cabecera de la pagina -->
	<ui:define name="title">
		<h:outputText value="Caja" />
	</ui:define>

	<!-- Definiendo el cuerpo de la pagina -->
	<ui:define name="content">
		<h:outputStylesheet library="css" name="main.css" />
		<br />
		<h:form>
			<div style="margin-left: 50px;">
				<div>
					<div>
						<div class="p6n-api-consent-screen-title">Crear Caja</div>
						<div class="p6n-api-consent-screen-inputs">
							<div class="p6n-api-consent-screen-input-section">
								<div class="p6n-api-consent-screen-label" style="width: 150px;">
									AGENCIA</div>
								<div>
									<h:outputLabel value="#{cajaCRUDBean.agencia.denominacion}" />
								</div>
							</div>
							<div class="p6n-api-consent-screen-input-section">
								<div class="p6n-api-consent-screen-label">DENOMINACION</div>
								<div>
									<div>
										<h:inputText id="txtDenominacion"
											value="#{cajaCRUDBean.denominacion}" maxlength="150"
											required="true"
											requiredMessage="Denominacion no debe de ser vacio" />
									</div>
								</div>
							</div>
							<div
								class="p6n-api-consent-screen-input-error p6n-api-consent-screen-product-name-error-msg">
								<h:message for="txtDenominacion" />
							</div>
							<div class="p6n-api-consent-screen-input-section">
								<div class="p6n-api-consent-screen-label" style="width: 150px;">ABREVIATURA</div>
								<div>
									<h:inputText id="txtAbreviatura"
										value="#{cajaCRUDBean.abreviatura}" maxlength="150"
										required="true"
										requiredMessage="Abreviatura no debe de ser vacio" />
								</div>
							</div>
							<div
								class="p6n-api-consent-screen-input-error p6n-api-consent-screen-product-name-error-msg">
								<h:message for="txtAbreviatura" />
							</div>
							<div class="p6n-api-consent-screen-input-section">
								<div class="p6n-api-consent-screen-label" style="width: 150px;">BOVEDAS
									ASIGNADAS</div>
								<div>
									<p:pickList id="pickBovedas"
										value="#{cajaCRUDBean.dualListModelBoveda}" var="boveda"
										itemLabel="#{boveda}" itemValue="#{boveda}"
										converter="DualPickListConverter" required="true"
										requiredMessage="Seleccione por lo menos una boveda" />
								</div>
							</div>
							<div
								class="p6n-api-consent-screen-input-error p6n-api-consent-screen-product-name-error-msg">
								<h:message for="pickBovedas" />
							</div>
							<div class="sf-buttons" style="float: left;">
								<h:commandButton action="#{cajaCRUDBean.createCaja()}"
									value="Guardar" styleClass="action blue" />
								<h:commandButton value="Cancelar" action="cancel"
									immediate="true" styleClass="action" />
							</div>
						</div>
					</div>
				</div>
			</div>
		</h:form>
	</ui:define>

</ui:composition>
</html>